<?php
/**
 * Created by PhpStorm.
 * User: zgh
 * Date: 2022-01-18
 * Time: 14:53
 */

namespace app\admin\item;

class CronLoader extends ItemLoader
{
    protected function begin_time_in($value)
    {
        return strtotime($value);
    }

    protected function begin_time_out($value)
    {
        return time_format($value);
    }

    protected function end_time_out($value)
    {
        return time_format($value);
    }

    protected function execute_time_out($value)
    {
        return $value ? time_format($value) : "-";
    }

    protected function end_time_in($value)
    {
        return strtotime($value);
    }
}